import random

# 随机数
# number = random.randint(1, 6)
# A的点数
A_sum = 0
# B的点数
B_sum = 0
# 次数
count = 0
# 数组
A_arrayList = []
B_arrayList = []
while count < 50:
    A_sum = random.randint(1, 6)
    B_sum = random.randint(1, 6)
    A_arrayList.append(A_sum)
    B_arrayList.append(B_sum)
    count = count + 1
a = sum(A_arrayList)
b = sum(B_arrayList)
print("A的投掷结果：{}\tA的总点数：{}".format(A_arrayList, a))
print("B的投掷结果：{}\tB的总点数：{}".format(B_arrayList, b))
print("投掷次数：{}".format(count))
if a>b:
    print("胜利者是A")
elif a<b:
    print("胜利者是B")
else:
    print("平局")
